home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4677 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: malloc
  5. Date: Tue, 06 Feb 96 13:12:33 GMT
  6. Organization: none
  7. Message-ID: <823612353snz@genesis.demon.co.uk>
  8. References: <311694DC.23905C8@traffic.jam.net>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <311694DC.23905C8@traffic.jam.net>
  15.            dshaffer@traffic.jam.net "David Shaffer" writes:
  16.  
  17. >why does malloc itself give a sigsegv?
  18.  
  19. It can do so if you have corrupted its workspace. This can be done through
  20. some invalid pointer operation e.g. dereferencing an inititialised pointer,
  21. writing outside the bounds of an object (in this case most likely one
  22. allocated previosly from the heap), or attempting to free an object not
  23. allocated by malloc/calloc/realloc or one already freed.
  24.  
  25. -- 
  26. -----------------------------------------
  27. Lawrence Kirby | fred@genesis.demon.co.uk
  28. Wilts, England | 70734.126@compuserve.com
  29. -----------------------------------------
  30.